package msu.ml.data.level2;

/**
 * Factory for creating Volume
 * Coverage Patterns.
 *
 * @author Reginald M Mead
 * @version 1.0
 */
public class VolumeCoveragePatternFactory 
{
	/**
	 * Create the correct volume coverage pattern
	 * for the given pattern number
	 * 
	 * @param patternNumber number of pattern to create
	 * @return a Volume Coverage Pattern
	 */
	public static IVolumeCoveragePattern createVolumeCoveragePattern(int patternNumber)
	{
		switch(patternNumber)
		{
			case 11:
            case 211:
				return new VolumeCoveragePattern11();
			case 12:
            case 212:
				return new VolumeCoveragePattern12();
			case 21:
            case 221:
				return new VolumeCoveragePattern21();
			case 31:
				return new VolumeCoveragePattern31();
			case 32:
				return new VolumeCoveragePattern32();
			case 121:
				return new VolumeCoveragePattern121();
			default:
				return null;
		}

	}

}
